package com.punai.system.bo.cs;

import com.punai.common.bos.KVCBO;

import java.util.ArrayList;
import java.util.List;

public class EpPermissionBo {

    private List<String> havePerm = new ArrayList<>();

    private List<KVCBO> allPerm = new ArrayList<>();

    {
        KVCBO root = new KVCBO();
        root.setKey("测1");
        root.setValue("1");

        KVCBO c = new KVCBO();
        c.setKey("测1.1");
        c.setValue("1.1");

        KVCBO c2 = new KVCBO();
        c2.setKey("测1.2");
        c2.setValue("1.2");

        List<KVCBO> children = root.getChildren();
        children.add(c);
        children.add(c2);
        allPerm.add(root);
    }


    public List<String> getHavePerm() {
        return havePerm;
    }

    public void setHavePerm(List<String> havePerm) {
        this.havePerm = havePerm;
    }

    public List<KVCBO> getAllPerm() {
        return allPerm;
    }

    public void setAllPerm(List<KVCBO> allPerm) {
        this.allPerm = allPerm;
    }
}
